package com.yonyougov.devops.cruxcisupport.commitcontext;

import com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextInfoVo;
import com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextVo;
import com.yonyougov.devops.cruxcisupport.committest.dto.CommitContextDto;
import com.yonyougov.devops.fwc.core.service.BaseService;

import java.math.BigInteger;
import java.util.List;

/**
 * t_commit_context服务
 */
public interface CommitContextService extends BaseService<CommitContextEntity, BigInteger> {
    //<!--用户自定义代码开始-->

    /**
     * 查询提测内容详情
     * 条件: 提测单id
     *
     * @param commitTestId [java.math.BigInteger]
     * @return List<CommitContextDevelopUserVo>
     */
    List<CommitContextVo> findListByCommitTestId(BigInteger commitTestId);

    /**
     * 查询提测内容详情
     * 条件: 提测单id
     *
     * @param commitTestId
     * @return [java.util.List: com.yonyougov.devops.cruxcisupport.commitcontext.vo.CommitContextInfoVo]
     */
    List<CommitContextInfoVo> findCommitContextByCommitTestId(BigInteger commitTestId);

    /**
     * 新增提测内容
     * 类型: 批量
     *
     * @param commitTestId  提测单id
     * @param commitContext 提测内容实体类
     */
    void AddMulCommitContext(BigInteger commitTestId, List<CommitContextDto> commitContext);

    /**
     * 删除提测内容
     * 类型: 批量
     *
     * @param commitTestId 提测单id
     */
    void deleteByCommitTestId(BigInteger commitTestId);
    //<!--用户自定义代码结束-->
}
